# if结构
weather = '下雪'
if weather == "下雨":  # 条件判断
    print("带伞")
    print("雨衣")
else:
    print("没有下雨")

if weather == '下雨':
    print("带伞")
elif weather == '下雪':
    print("穿靴")
else:
    print("晴天")

if 1:
    print("....")
    if 2:
        print(",,,,")
    else:
        print("////")
else:           # 没有执行过break，执行else否则不执行
    print("111")

# while循环
n = 0
while n < 3:
    print("python")
    n += 1

# for循环
for i in range(5):  # range：数组
    print("hello")

for j in [1, 2, 3, 4]:
    print(j, end=' ')
print()

# 与else结合
n = 0
while n < 5:
    print("hello python...")
    n += 1
    if n == 3:
        break
    else:
        print("没有退出...")
